<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>06_列表渲染</title>
    <!-- 1. 引入vue.js -->
    <script src="./js/vue.js"></script>
</head>
<body>
    <!-- 2. 编写div元素 -->
    <div id="app">
        <ul>
            <li v-for="(item, index) in items">{{ index }}--{{ item }}</li>
        </ul>
    </div>
<!-- 3. 编写vue实例 -->
<script>
    const vm = new Vue({
    el: '#app',
    data: {
        items: ['test1', 'test2', 'test3'],
        },
    })

</script>
</body>
</html>